package com.gzucm.Scholarship.service;

import com.gzucm.Scholarship.common.base.BaseServiceImpl;
import com.gzucm.Scholarship.dao.TeacherDao;
import com.gzucm.Scholarship.entity.Teacher;
import org.springframework.stereotype.Service;

@Service
public class TeacherService extends BaseServiceImpl<Teacher> {

    private TeacherDao teacherDao;

    public TeacherService(TeacherDao dao) {
        super(dao);
        this.teacherDao = dao;
    }

    public Teacher findByIdCard(String idCard) {
        return teacherDao.findByIdCard(idCard);
    }

    public Teacher findByNumber(String number) {
        return teacherDao.findByNumber(number);
    }
}
